package cn.xopencode.userservice.rpc.dept.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 更新部门时用的DTO
 *
 * @Author xiaodawei
 * @since 2021/9/17
 */
@Data
@Accessors(chain = true)
@ApiModel("更新部门")
public class UpdateDeptDTO extends CreateDeptDTO {
    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空")
    @ApiModelProperty(value = "部门ID",required = true)
    private String id;
}
